#include "include.h"

#if (LANG_SELECT == LANG_EN_ZH)
const res_addr_t mul_lang_tbl[2][IDX_MAX_SBC] = {
    {
        [IDX_LANGUAGE_SBC   ] = {&RES_BUF_EN_LANGUAGE_SBC,      &RES_LEN_EN_LANGUAGE_SBC},
        [IDX_LOW_BATTERY_SBC] = {&RES_BUF_EN_LOW_BATTERY_SBC,   &RES_LEN_EN_LOW_BATTERY_SBC},
        [IDX_POWERON_SBC    ] = {&RES_BUF_EN_POWERON_SBC,       &RES_LEN_EN_POWERON_SBC},
        [IDX_POWEROFF_SBC   ] = {&RES_BUF_EN_POWEROFF_SBC,      &RES_LEN_EN_POWEROFF_SBC},
        [IDX_MAX_VOL_SBC    ] = {&RES_BUF_EN_MAX_VOL_SBC,       &RES_LEN_EN_MAX_VOL_SBC},
//        [IDX_SDCARD_MODE_SBC] = {&RES_BUF_EN_SDCARD_MODE_SBC,   &RES_LEN_EN_SDCARD_MODE_SBC},
//        [IDX_USB_MODE_SBC   ] = {&RES_BUF_EN_USB_MODE_SBC,      &RES_LEN_EN_USB_MODE_SBC},
        [IDX_AUX_MODE_SBC   ] = {&RES_BUF_EN_AUX_MODE_SBC,      &RES_LEN_EN_AUX_MODE_SBC},
//        [IDX_CLOCK_MODE_SBC ] = {&RES_BUF_EN_CLOCK_MODE_SBC,    &RES_LEN_EN_CLOCK_MODE_SBC},
//        [IDX_FM_MODE_SBC    ] = {&RES_BUF_EN_FM_MODE_SBC,       &RES_LEN_EN_FM_MODE_SBC},
//        [IDX_SPK_MODE_SBC   ] = {&RES_BUF_EN_SPK_MODE_SBC,      &RES_LEN_EN_SPK_MODE_SBC},
//        [IDX_PC_MODE_SBC    ] = {&RES_BUF_EN_PC_MODE_SBC,       &RES_LEN_EN_PC_MODE_SBC},
        [IDX_BT_MODE_SBC    ] = {&RES_BUF_EN_BT_MODE_SBC,       &RES_LEN_EN_BT_MODE_SBC},
        [IDX_CAMERA_MODE_SBC] = {&RES_BUF_EN_CAMERA_MODE_SBC,   &RES_LEN_EN_CAMERA_MODE_SBC},
        [IDX_LEFT_CH_SBC    ] = {&RES_BUF_EN_LEFT_CH_SBC,       &RES_LEN_EN_LEFT_CH_SBC},
        [IDX_RIGHT_CH_SBC   ] = {&RES_BUF_EN_RIGHT_CH_SBC,     &RES_LEN_EN_RIGHT_CH_SBC},
        [IDX_PAIRING_SBC    ] = {&RES_BUF_EN_PAIRING_SBC,      &RES_LEN_EN_PAIRING_SBC},
        [IDX_WAIT4CONN_SBC  ] = {&RES_BUF_EN_WAIT4CONN_SBC,    &RES_LEN_EN_WAIT4CONN_SBC},
        [IDX_CONNECTED_SBC  ] = {&RES_BUF_EN_CONNECTED_SBC,    &RES_LEN_EN_CONNECTED_SBC},
        [IDX_DISCONNECT_SBC ] = {&RES_BUF_EN_DISCONNECT_SBC,   &RES_LEN_EN_DISCONNECT_SBC},
        [IDX_CAMERA_ON_SBC  ] = {&RES_BUF_EN_CAMERA_ON_SBC,    &RES_LEN_EN_CAMERA_ON_SBC},
        [IDX_CAMERA_OFF_SBC ] = {&RES_BUF_EN_CAMERA_OFF_SBC,   &RES_LEN_EN_CAMERA_OFF_SBC},
        [IDX_CALL_HANGUP_SBC] = {&RES_BUF_EN_CALL_HANGUP_SBC,  &RES_LEN_EN_CALL_HANGUP_SBC},
        [IDX_CALL_REJECT_SBC] = {&RES_BUF_EN_CALL_REJECT_SBC,  &RES_LEN_EN_CALL_REJECT_SBC},
        [IDX_REDIALING_SBC  ] = {&RES_BUF_EN_REDIALING_SBC,    &RES_LEN_EN_REDIALING_SBC},
        [IDX_MUSIC_MODE_SBC ] = {&RES_BUF_EN_MUSIC_MODE_SBC,   &RES_LEN_EN_MUSIC_MODE_SBC},
        [IDX_GAME_MODE_SBC  ] = {&RES_BUF_EN_GAME_MODE_SBC,    &RES_LEN_EN_GAME_MODE_SBC},

        [IDX_MIN_VOL_SBC    ] = {&RES_BUF_EN_MIN_VOL_SBC,       &RES_LEN_EN_MIN_VOL_SBC},
        [IDX_NUM_0_SBC      ] = {&RES_BUF_EN_NUM_0_SBC,        &RES_LEN_EN_NUM_0_SBC},
        [IDX_NUM_1_SBC      ] = {&RES_BUF_EN_NUM_1_SBC,        &RES_LEN_EN_NUM_1_SBC},
        [IDX_NUM_2_SBC      ] = {&RES_BUF_EN_NUM_2_SBC,        &RES_LEN_EN_NUM_2_SBC},
        [IDX_NUM_3_SBC      ] = {&RES_BUF_EN_NUM_3_SBC,        &RES_LEN_EN_NUM_3_SBC},
        [IDX_NUM_4_SBC      ] = {&RES_BUF_EN_NUM_4_SBC,        &RES_LEN_EN_NUM_4_SBC},
        [IDX_NUM_5_SBC      ] = {&RES_BUF_EN_NUM_5_SBC,        &RES_LEN_EN_NUM_5_SBC},
        [IDX_NUM_6_SBC      ] = {&RES_BUF_EN_NUM_6_SBC,        &RES_LEN_EN_NUM_6_SBC},
        [IDX_NUM_7_SBC      ] = {&RES_BUF_EN_NUM_7_SBC,        &RES_LEN_EN_NUM_7_SBC},
        [IDX_NUM_8_SBC      ] = {&RES_BUF_EN_NUM_8_SBC,        &RES_LEN_EN_NUM_8_SBC},
        [IDX_NUM_9_SBC      ] = {&RES_BUF_EN_NUM_9_SBC,        &RES_LEN_EN_NUM_9_SBC},
    },
    {
        [IDX_LANGUAGE_SBC   ] = {&RES_BUF_ZH_LANGUAGE_SBC,     &RES_LEN_ZH_LANGUAGE_SBC},
        [IDX_LOW_BATTERY_SBC] = {&RES_BUF_ZH_LOW_BATTERY_SBC,  &RES_LEN_ZH_LOW_BATTERY_SBC},
        [IDX_POWERON_SBC    ] = {&RES_BUF_ZH_POWERON_SBC,      &RES_LEN_ZH_POWERON_SBC},
        [IDX_POWEROFF_SBC   ] = {&RES_BUF_ZH_POWEROFF_SBC,     &RES_LEN_ZH_POWEROFF_SBC},
        [IDX_MAX_VOL_SBC    ] = {&RES_BUF_ZH_MAX_VOL_SBC,      &RES_LEN_ZH_MAX_VOL_SBC},
        [IDX_MIN_VOL_SBC    ] = {&RES_BUF_ZH_MIN_VOL_SBC,      &RES_LEN_ZH_MIN_VOL_SBC},
//        [IDX_SDCARD_MODE_SBC] = {&RES_BUF_ZH_SDCARD_MODE_SBC,  &RES_LEN_ZH_SDCARD_MODE_SBC},
//        [IDX_USB_MODE_SBC   ] = {&RES_BUF_ZH_USB_MODE_SBC,     &RES_LEN_ZH_USB_MODE_SBC},
        [IDX_AUX_MODE_SBC   ] = {&RES_BUF_ZH_AUX_MODE_SBC,     &RES_LEN_ZH_AUX_MODE_SBC},
//        [IDX_CLOCK_MODE_SBC ] = {&RES_BUF_ZH_CLOCK_MODE_SBC,   &RES_LEN_ZH_CLOCK_MODE_SBC},
//        [IDX_FM_MODE_SBC    ] = {&RES_BUF_ZH_FM_MODE_SBC,      &RES_LEN_ZH_FM_MODE_SBC},
//        [IDX_SPK_MODE_SBC   ] = {&RES_BUF_ZH_SPK_MODE_SBC,     &RES_LEN_ZH_SPK_MODE_SBC},
//        [IDX_PC_MODE_SBC    ] = {&RES_BUF_ZH_PC_MODE_SBC,      &RES_LEN_ZH_PC_MODE_SBC},
        [IDX_BT_MODE_SBC    ] = {&RES_BUF_ZH_BT_MODE_SBC,      &RES_LEN_ZH_BT_MODE_SBC},
        [IDX_CAMERA_MODE_SBC] = {&RES_BUF_ZH_CAMERA_MODE_SBC,  &RES_LEN_ZH_CAMERA_MODE_SBC},
        [IDX_LEFT_CH_SBC    ] = {&RES_BUF_ZH_LEFT_CH_SBC,      &RES_LEN_ZH_LEFT_CH_SBC},
        [IDX_RIGHT_CH_SBC   ] = {&RES_BUF_ZH_RIGHT_CH_SBC,     &RES_LEN_ZH_RIGHT_CH_SBC},
        [IDX_PAIRING_SBC    ] = {&RES_BUF_ZH_PAIRING_SBC,      &RES_LEN_ZH_PAIRING_SBC},
        [IDX_WAIT4CONN_SBC  ] = {&RES_BUF_ZH_WAIT4CONN_SBC,    &RES_LEN_ZH_WAIT4CONN_SBC},
        [IDX_CONNECTED_SBC  ] = {&RES_BUF_ZH_CONNECTED_SBC,    &RES_LEN_ZH_CONNECTED_SBC},
        [IDX_DISCONNECT_SBC ] = {&RES_BUF_ZH_DISCONNECT_SBC,   &RES_LEN_ZH_DISCONNECT_SBC},
        [IDX_CAMERA_ON_SBC  ] = {&RES_BUF_ZH_CAMERA_ON_SBC,    &RES_LEN_ZH_CAMERA_ON_SBC},
        [IDX_CAMERA_OFF_SBC ] = {&RES_BUF_ZH_CAMERA_OFF_SBC,   &RES_LEN_ZH_CAMERA_OFF_SBC},
        [IDX_CALL_HANGUP_SBC] = {&RES_BUF_ZH_CALL_HANGUP_SBC,  &RES_LEN_ZH_CALL_HANGUP_SBC},
        [IDX_CALL_REJECT_SBC] = {&RES_BUF_ZH_CALL_REJECT_SBC,  &RES_LEN_ZH_CALL_REJECT_SBC},
        [IDX_REDIALING_SBC  ] = {&RES_BUF_ZH_REDIALING_SBC,    &RES_LEN_ZH_REDIALING_SBC},
        [IDX_MUSIC_MODE_SBC ] = {&RES_BUF_ZH_MUSIC_MODE_SBC,   &RES_LEN_ZH_MUSIC_MODE_SBC},
        [IDX_GAME_MODE_SBC  ] = {&RES_BUF_ZH_GAME_MODE_SBC,    &RES_LEN_ZH_GAME_MODE_SBC},
        [IDX_NUM_0_SBC      ] = {&RES_BUF_ZH_NUM_0_SBC,        &RES_LEN_ZH_NUM_0_SBC},
        [IDX_NUM_1_SBC      ] = {&RES_BUF_ZH_NUM_1_SBC,        &RES_LEN_ZH_NUM_1_SBC},
        [IDX_NUM_2_SBC      ] = {&RES_BUF_ZH_NUM_2_SBC,        &RES_LEN_ZH_NUM_2_SBC},
        [IDX_NUM_3_SBC      ] = {&RES_BUF_ZH_NUM_3_SBC,        &RES_LEN_ZH_NUM_3_SBC},
        [IDX_NUM_4_SBC      ] = {&RES_BUF_ZH_NUM_4_SBC,        &RES_LEN_ZH_NUM_4_SBC},
        [IDX_NUM_5_SBC      ] = {&RES_BUF_ZH_NUM_5_SBC,        &RES_LEN_ZH_NUM_5_SBC},
        [IDX_NUM_6_SBC      ] = {&RES_BUF_ZH_NUM_6_SBC,        &RES_LEN_ZH_NUM_6_SBC},
        [IDX_NUM_7_SBC      ] = {&RES_BUF_ZH_NUM_7_SBC,        &RES_LEN_ZH_NUM_7_SBC},
        [IDX_NUM_8_SBC      ] = {&RES_BUF_ZH_NUM_8_SBC,        &RES_LEN_ZH_NUM_8_SBC},
        [IDX_NUM_9_SBC      ] = {&RES_BUF_ZH_NUM_9_SBC,        &RES_LEN_ZH_NUM_9_SBC},
    },
};

const res_addr_t *res_get_ring_num(u8 index)
{
    return &mul_lang_tbl[sys_cb.lang_id][index+IDX_NUM_0_SBC];
}

#endif //#if (LANG_SELECT == LANG_EN_ZH)
